package com.li.arithmetic;

public class MaxMinBeiNumber {
	public static void main(String[] args) {
		int a=getMaxPulbicNumber(25, 50);
		System.out.println(a+" is max public yue number");
		int b=getMinPublicNumber(25, 50, a);
		System.out.println(b+" is min public bei number");
	}
	
	public static int getMaxPulbicNumber(int a,int b){
		int temp;
		while((temp=a%b)!=0){
			a=b;
			b=temp;
		}
		return b;
	}
	
	public static int getMinPublicNumber(int a,int b,int c){
		return a*b/c;
	} 
}
